< previous page page_99 next page >

Page 99
Colors
Color standards for Win95 are quite simpleuse gray! Although Microsoft recommends the gray tones for all forms, the color settings are one of the most commonly customized GUI properties in Windows programs. In this section you will learn two ways you can approach adding color to your applications: system colors and custom colors.
First, put together a simple form using Table 4.3 and Figure 4.12 as a guide. Remember that you are building a Win95-style form! You won't spend time linking the input controls to a data control right nowjust concentrate on building the form and adding color-switching capabilities.
Tip.gif
Here are a few suggestions to help you build the form:
· Before you begin placing controls on the form, set the Grid Height and Grid Width properties on the General Tab in the Tools | Options menu item to 60 each. This will give you a smaller grid to work with and will make it easier to place controls on the form.
·Place the SSPanel you will use for your palette on the form first. Then place all other controls directly on the palette. Do not place controls on the palette by double-clicking the tool in the tools window or by using the Copy command. Click the control icon once and then paint the control on the palette with the mouse. This sets the control as a ''child" of the palette. Now, any time you move the palette, the controls will move along with it.
· Place the bound command buttons on the palette one after the other without setting any properties. When you want to set the command button properties, click one of the command buttons and then hold the Shift key while you click each of the other three. Now you can use the properties window to set values for all four of the controls at once. Set the command button's FontBold, Height, and Width properties this way to save time.
· You can easily set border widths if you remember that the grid dots appear every 60 twips on the form. All border widths should be set at 120 twips. This Microsoft standard makes it easy to distinguish separate controls and keeps a nice border around the

 
< previous page page_99 next page >

If you like this book, buy it!